<template>
  <el-dropdown>
    <el-button type="primary">
      选择班级<i class="el-icon-arrow-down el-icon--right"></i>
    </el-button>
    <el-dropdown-menu slot="dropdown">
      <el-dropdown-item>{{class1}}</el-dropdown-item>
      <el-dropdown-item>{{class2}}</el-dropdown-item>
    </el-dropdown-menu>
  </el-dropdown>
</template>

<script>
export default {
  name: "Menu",
  data() {
    return {
      class1: "1班",
      class2: "2班",
    };
  },
  methods: {
    handleClick() {
      alert("button click");
    },
  },
};
</script>
<style>
.el-dropdown {
  vertical-align: top;
}
.el-dropdown + .el-dropdown {
  margin-left: 15px;
}
.el-icon-arrow-down {
  font-size: 12px;
}
</style>

